Eric Programming Leetcode 236